<?php
    require '../../feed/config/config.php';
	session_start();
	$ConnfigRs=mysqli_fetch_array(mysqli_query($con,"select * from config where id='1'"));
	if(empty($_SESSION['member'])){
	    echo "<script>location='../index.php';</script>";
	}
	if($_GET['activityId']==""){
	    echo "<script>location='./index.php';</script>";
	}else{
	    $activityRs=mysqli_fetch_array(mysqli_query($con,"select * from activity where id='".$_GET['activityId']."'")); 
	    if($activityRs['name']==""){
	        echo "<script>location='./index.php';</script>";
	    }
	}
	?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8"/>
    <title>活动中心</title>
    <script type="text/javascript" src="../js/base-loading.min.js"></script>
    <script type="text/javascript" src="../js/layui.js"></script>
    <link rel="stylesheet" href="../css/style.css"/>
    <link rel="stylesheet" href="../css/layui.css"/>
  </head>
  <body>
    <div class="s_header w">
      <div class="s_header_top w">
        <div class="header_top w1000 auto">
          <div class="header_top_fl fl">欢迎访问<?php echo $ConnfigRs['name'];?></div>
          <div class="header_top_fr fr"><span class="header_email dib"></span><span class="header_tel dib"></span>
            <div class="cb"></div>
          </div>
          <div class="cb"></div>
        </div>
      </div>
      <div class="s_header_nav w">
        <div class="header_nav w1000 auto">
          <div class="logo fl"><a href="index.html"><img src="http://www.huayu.edu.cn/template/huayu/listimages/logo.png" alt=""/></a></div>
        </div>
      </div>
    </div>
    <div class="banner">
      <div id="banner" class="dv_5"><a href="" style=" background:url(../images/hy.png) center center no-repeat; display: block; z-index: 1; " class="d1"></a><a href="" style=" background:url(images/banner2.png) center center no-repeat; display: block; z-index: 1; " class="d1"></a><a href="" style=" background:url(images/banner3.png) center center no-repeat; display: block; z-index: 1; " class="d1"></a>
      </div>
    </div>
    <div class="s_cen w">
      <div class="center w1000 auto">
          <br />
                <p><a href="../index.php">首页</a><a href="../activity/activity.php">  /活动中心</a></p>
              <br /><br />
?>
<script type="text/javascript" src="../js/layui.js"></script>
<link rel="stylesheet" href="../css/layui.css"/>
<p>
    活动名称：<?php echo $activityRs['name'];?><br />
    活动简介：<?php echo $activityRs['more'];?><br />
    活动创建人：<?php echo $activityRs['addUser'];?><br />
    活动添加时间：<?php echo $activityRs['addTime'];?><br />
    活动开始时间：<?php echo $activityRs['startTime'];?><br />
    活动结束时间：<?php echo $activityRs['overTime'];?><br />
    是否在线报名：<?php echo $activityRs['online'];?><br />
    是否提交附件：<?php echo $activityRs['other'];?><br />
    活动所属社团：<?php echo $activityRs['clubId'];?><br />
</p>
<form method="post" action="./activity.php" class="layui-form">
    <input type="text" name="name" class="layui-input" placeholder="请输入姓名"><br /><br />
    <input type="text" name="no" class="layui-input" placeholder="请输入学号"><br /><br />
    <input type="text" name="class" class="layui-input" placeholder="请输入班级"><br /><br />
    <input type="tel" name="tel" class="layui-input" placeholder="请输入联系电话"><br /><br />
    <input type="file" name="file" class="layui-input" placeholder="请上传附件">
    <input type="submit" name="submit" class="layui-btn" value="立即报名">
</form>